<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org/">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div>
    <!--相对路径-->
    <a href="index.html" th:href="@{spring}">点击</a><br/>
    <!--绝对路径-->
    <a href="userInfo.html" th:href="@{http://www.baidu.com}">查看</a>
</div>
</body>
</html>